"use strict";

module.exports = function (sequelize, DataTypes) {
    var LoginSession = sequelize.define("loginSession", {
            value: {
                type: DataTypes.TEXT,
                allowNull: false,
            },
            type: {
                type: DataTypes.ENUM,
                values: ['self', 'open_platform'],
                allowNull: false,
            },
            deviceId: {
                type: DataTypes.TEXT,
                allowNull: false,
            },

        },
        {
            freezeTableName: true,
            paranoid: false,
        });

    LoginSession.associate = function (models) {
        
    }

    return LoginSession;
};